import request from '@/utils/request'

const userApi = {
    getexperttype: 'frontend/society_type/get_society_expert_types',
    addexpertmessage: 'frontend/argument_experts/create',
    getexperlevel: 'frontend/experts_level_types/finds',
    getdatatable: 'frontend/argument_experts/finds',
    saveexpertmessage: 'frontend/argument_experts/edit',
    statusmod: 'frontend/argument_experts/status',
    fuzzyquery: 'frontend/argument_experts/search',
    importexl: 'frontend/argument_experts/import',
    getStreamTable: '/frontend/ArgumentFlow/finds'
}

export function getexperttype (parameter) {
  return request({
    url: userApi.getexperttype,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function addexpertmessage (parameter) {
  return request({
    url: userApi.addexpertmessage,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function getexperlevel (parameter) {
  return request({
    url: userApi.getexperlevel,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function getdatatable (parameter) {
  return request({
    url: userApi.getdatatable,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function saveexpertmessage (parameter) {
  return request({
    url: userApi.saveexpertmessage,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function statusmod (parameter) {
  return request({
    url: userApi.statusmod,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function fuzzyquery (parameter) {
  return request({
    url: userApi.fuzzyquery,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function importexl (parameter) {
  return request({
    url: userApi.importexl,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function getStreamTable (parameter) {
  return request({
    url: userApi.getStreamTable,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
